const mongoose = require('mongoose')
const baseModel = require('./baseModel')  //公共model模块
const collectModel = new mongoose.Schema({
    user:{
        type:mongoose.ObjectId,
        require:true,
        ref:'User' //联表User 返回User相关信息
    },
    video:{
        type:mongoose.ObjectId,
        require:true,
        ref:'Video' //联表Video 返回Video相关信息
    },
    ...baseModel
})
module.exports = collectModel